package com.exam.qc.mapper;

import com.exam.qc.model.Quality;
import org.apache.ibatis.annotations.Param;

public interface QualityMapper {
    /**
     * 插入质检结果
     * @param quality
     * @return
     */
    Integer insertQuality(Quality quality);

    /**
     * 根据产品编号查询对应的产品质检结果
     * @param productId
     * @return
     */
    Quality selectQualityByPid(@Param("productId") Integer productId);
}
